package com.atguigu.bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestUser {

    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring.xml");
        com.atguigu.bean.User user = context.getBean("user", com.atguigu.bean.User.class);
        System.out.println(user);
    }
}
